package com.teamwork.ZuccEcho.Service.impl;

import com.teamwork.ZuccEcho.Entity.Student;
import com.teamwork.ZuccEcho.Repository.LoginStuApiRepository;
import com.teamwork.ZuccEcho.Service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginStuApiRepository loginStuApiRepository;
    @Override
    public List<Student> getStudentList() {
        return loginStuApiRepository.findAll();
    }
}
